home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib9 / v_11_03 / 1103110a < prev    next >
Encoding:
Text File  |  1995-11-01  |  393 b   |  19 lines

  1. // fv1.cpp - a dynamic vector of float (with a possibly
  2. // non-zero low-bound) using a subscripting object
  3.  
  4. #include "fv1.h"
  5. #include <assert.h>
  6.  
  7. float float_vector::operator[](int i) const
  8.     {
  9.     assert(i >= low());
  10.     return float_array::operator[](i - low());
  11.     }
  12.  
  13. fa_index float_vector::operator[](int i)
  14.     {
  15.     assert(i >= low());
  16.     return float_array::operator[](i - low());
  17.     }
  18.  
  19.